<template>
  <div
    class="flex h-10 w-10 cursor-pointer items-center justify-center rounded-xl bg-gray-100 hover:bg-gray-200"
    :class="{ 'ring-2 ring-blue-500': selected }"
  >
    <img :src="logo" class="h-6 w-6" />
  </div>
  <p v-if="serviceName" class="text-center text-xs text-gray-700">
    {{ serviceName }}
  </p>
</template>

<script setup lang="ts">
interface P {
  serviceName: string;
  logo?: string;
  selected?: boolean;
}

withDefaults(defineProps<P>(), {
  serviceName: "",
  selected: false,
  logo: "",
});
</script>

<style scoped></style>
